from likeshop_project.base.mybase import Tools

class category_model(Tools):
    path = '/api/goods_category/lists'

    def category_action(self,client=2):
        mydata = {
            'client':client
        }

        res = self.huihua.get(url=self.hosturl+self.path,)
        return res.json()
# import requests
# s = requests.session()
# re = category_model(huihua=s)
# ma = re.category_action()
# print(ma)
# a = ma['data'][1].get('id')
# print(a)
